/*
 * @Author: hyman
 * @Date: 2021-12-30 11:22:57
 * @LastEditors: hyman
 * @LastEditTime: 2021-12-31 10:55:31
 * @Description: 请填写简介
 */
//引入封装的请求服务
import { GET, POST, UPLOAD, UPLOADS, POSTS } from '@/services/request.js'

export default {
    // 添加订单
    orderAdd(data = {}) {
        return POST({
            url: '/order/order/add',
            params: data
        })
    },
    // 订单列表
    orderIndex(data = {}) {
        return POST({
            url: '/order/order/index',
            params: data
        })
    },
    // 订单详细 
    orderInfo(data = {}) {
        return POST({
            url: '/order/order/info',
            params: data
        })
    },
    // 确认收货
    orderReceiving(data = {}) {
        return POST({
            url: '/order/order/receiving',
            params: data
        })
    },
    // 退货
    orderRetreat(data = {}) {
        return POST({
            url: '/order/order/retreat',
            params: data
        })
    },
    // 评分
    orderRate(data = {}) {
        return POSTS({
            url: '/order/order/rate',
            params: data
        })
    },
    // 物流信息
    orderExpress(data = {}) {
        return POST({
            url: '/order/order/express',
            params: data
        })
    }
}